EnumTypeDef.hIntroductionUse the links in the table of contents to the left to access the documentation. Typedefs
Alignmenttypedef enum{ Align_NoSetting = -1, Align_Left = 0, Align_Center = 1, Align_Right = 2, Align_Full=3 } Alignment; Constants
DiscussionAlignment mode BarcodeHRIpostypedef enum{ BarcodeHRIpos_noprint=0, BarcodeHRIpos_above=1, BarcodeHRIpos_Below=2, BarcodeHRIpos_both=3, }BarcodeHRIpos; DiscussionBar code text display position for ESC - BarcodeHRIpos_noprint: not printer - BarcodeHRIpos_above: Above the bar code - BarcodeHRIpos_Below: Under the bar code - BarcodeHRIpos_both: Above and below the bar code BarcodeTypetypedef enum{ BarcodeTypeUPC_A=0, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeUPC_E=1, // CPCL、ESC、TSC、ZPL、Xsim BarcodeTypeEAN13=2, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeEAN8=3, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeCODE39=4, // CPCL、ESC、TSC、ZPL、Xsim BarcodeTypeITF =5, // CPCL、ESC、TSC、Xsim BarcodeTypeCODABAR=6, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeCODE128=7, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeQrcode=8, // CPCL、ESC、TSC、ZPL、Xsim、Escp BarcodeTypeCODE93=9, // CPCL、ESC、TSC BarcodeTypePDF417=10, // Xsim、Escp BarcodeTypeAZTEC=11, // Escp BarcodeTypeBC39N=12, // Escp BarcodeTypeBC39W=13, // Escp BarcodeTypeI2of5=14, // Escp BarcodeTypeBCI25=15, // Escp BarcodeTypeEN128=16, // Escp }BarcodeType; Discussion- BarcodeTypeUPC_A: UPC_A - BarcodeTypeEAN13: EAN13 - BarcodeTypeEAN8: EAN8 - BarcodeTypeCODE39: CODE39 - BarcodeTypeITF: ITF - BarcodeTypeCODABAR: CODABAR - BarcodeTypeQrcode: Qrcode BleServiceStatustypedef enum { BleScanComplete, /* Scanning*/ BleScanDevice, }BleServiceStatus; FieldsDiscussionThe current operating status of Bluetooth BleWriteTypetypedef enum{ bleWriteWithResponse=0, bleWriteWithoutResponse=1 }BleWriteType; DiscussionBluetooth write mode BlueToothKindtypedef enum { BlueToothKind_Ble = 0, } BlueToothKind; ConstantsDiscussionBluetooth kind CPCLFontTypetypedef enum{ CPCLFontType_Font1 = 1, CPCLFontType_Font2 = 2, CPCLFontType_Font3 = 3, CPCLFontType_Font4 = 4, CPCLFontType_Font5 = 5, CPCLFontType_Font6 = 6, CPCLFontType_Font7 = 7, CPCLFontType_Chinese_24x24 = 24, CPCLFontType_Chinese_16x16_custom = 55,//16*16 } CPCLFontType; DiscussionCPCL type CutterModetypedef enum{ CutterMode_None = 0, CutterMode_half = 1, CutterMode_Full = 2, } CutterMode; Constants
DiscussionCutter mode ECC_leveltypedef enum{ ECC_level_L, ECC_level_M, ECC_level_Q, ECC_level_H }ECC_level; FieldsDiscussionError correction level Two-dimensional code for TSC EncodingTypetypedef enum{ Encoding_GBK = 0, Encoding_UTF8 = 1 }EncodingType; Discussionencoding type - Encoding_GBK: GBK - Encoding_UTF8: UTF8 ESCFontTypetypedef enum{ ESCFontType_FontA = 0, ESCFontType_FontB = 1, } ESCFontType; Constants
DiscussionESC font type FontStyle836typedef enum{ FontStyle836_Normal=0, FontStyle836_Hollow=1, FontStyle836_shadow=2, FontStyle836_shadowAndHollow=3 }FontStyle836; Constants
DiscussionFont style (For pin) JumpModetypedef enum { JumpMode_Forward=0, JumpMode_Reverse=1 } JumpMode; Constants
Discussion(for Pin) Jump mode LableDirectiontypedef enum{ Direction_Forward=0, Direction_Reverse=1, }LableDirection; Discussion(for TSC,CPCL,zpl) Label printing direction PageLengthTypetypedef enum { pglen_INCH_3=0, //3 inch pglen_INCH_11_divided_by_3=1, //11/3 inch pglen_INCH_3_5=2,//3.5 inch pglen_INCH_4=3,//3 inch pglen_INCH_5=4, pglen_INCH_5_5=5,//5.5 pglen_INCH_6=6, pglen_INCH_7=7, pglen_INCH_11=8, pglen_INCH_A4_11_6=9,//11.6 pglen_INCH_12=10,//10 pglen_INCH_14=11, }PageLengthType; Discussionfor pin Setting the page Length PageUnittypedef enum{ PageUnit_Row=0, PageUnit_inch=1 }PageUnit; Discussion(for Pin) Page length unit PrintDirectionModetypedef enum { Print_double_sided = 0, Print_single_sided = 1, Print_Full_sided = 2 } PrintDirectionMode; Constants
Discussion(for Pin) Print direction PrinterCmdTypetypedef enum { PrinterCmdESC = 0, PrinterCmdCPCL = 1, PrinterCmdZPL = 2, PrinterCmdXsim = 3, PrinterCmdEscP = 4, // PrinterCmdTSC = 5, // PrinterCmdPIN = 6, }PrinterCmdType; DiscussionInstruction type PrinterCodeErrortypedef enum { PrinterCodeOK = 0, PrinterCodeTooLong = -1, PrinterCodeFormatError = -2, PrinterCodeUnknowType = -3, PrinterCodeTooShort = -4, }PrinterCodeError; DiscussionPrint the value returned by the bar code - PrinterCodeOK: The bar code is correct - PrinterCodeTooLong: Bar code is too long - PrinterCodeFormatError: Barcode format is wrong - PrinterCodeUnknowType: Unknown barcode type - PrinterCodeTooShort: Barcode is too short PrinterPortTypetypedef enum { PrinterPortWifi=0, PrinterPortBle=1, PrinterPortMFI=2, }PrinterPortType; DiscussionConnection port type PrintStautsCmdtypedef enum { /* unknow */ PrnStautsCmd_unknown = -1, PrnStautsCmd_Normal = 0, PrnStautsCmd_SN = 1, PrnStautsCmd_Version = 2, PrnStautsCmd_Model = 3, PrnStautsCmd_Battery = 4, PrnStautsCmd_BleMac = 5, /* notice ,dont use */ PrnStautsCmd_PrintEnd = 99, PrnStautsCmd_PrintFailed = 100 }PrintStautsCmd; Constants
Discussionprinter Stauts enquiry RotateTypetypedef enum{ Rotate0=0, Rotate90=1, Rotate180=2, Rotate270=3, } RotateType; ConstantsDiscussionBar code clockwise rotation ESC Can only rotate 90 degrees RowSpacingModetypedef enum { Row60th = 1, Row180th = 2, Row360th = 3,// RowOneSixth = 4, RowOneeighth = 5, } RowSpacingMode; Constants
Discussion(for Pin) Row spacing mode TSCFontTypetypedef enum{ TSCFontType_Font1 = 1, TSCFontType_Font2 = 2, TSCFontType_Font3 = 3, TSCFontType_Font4 = 4, TSCFontType_Font5 = 5, TSCFontType_Font6 = 6, TSCFontType_Font7 = 7, TSCFontType_Font8 = 8, TSCFontType_TST24 = 9, TSCFontType_TSS24 = 10, TSCFontType_K=11, TSCFontType_TSS16 = 12, } TSCFontType; Constants
DiscussionTSC type XSIMFontTypetypedef enum { XsimFontType_Font0 = 0, XsimFontType_Font1 = 1, XsimFontType_Font2 = 2, XsimFontType_Font3 = 3, XsimFontType_Font4 = 4, XsimFontType_Font5 = 5, XsimFontType_Font6 = 6, XsimFontType_Font7 = 7, XsimFontType_Font8 = 8, XsimFontType_Font9 = 9, XsimFontType_Font10 = 10, XsimFontType_Font11 = 11, XsimFontType_Font12 = 12, XsimFontType_Font13 = 13, XsimFontType_Font14 = 14, XsimFontType_Font15 = 15, } XSIMFontType; Discussionxsim type ZPLFontTypetypedef enum { ZplFontType_Vector = 0,// Vector font ZplFontType_Font1 = 1, ZplFontType_Font2 = 2, ZplFontType_Font3 = 3, ZplFontType_Font4 = 4, ZplFontType_Font5 = 5, ZplFontType_Font6 = 6, ZplFontType_Font7 = 7, ZplFontType_Font8 = 8, ZplFontType_Font9 = 9, ZplFontType_FontA = 10, //A ZplFontType_FontB = 11, //B ZplFontType_FontC = 12, //C ZplFontType_FontD = 13, //D ZplFontType_FontE = 14, //E ZplFontType_FontF = 15, //F ZplFontType_FontG = 16, //G } ZPLFontType; DiscussionZPL type Structs and UnionsCoordinatestruct Coordinate { NSInteger x; NSInteger y; NSInteger width; NSInteger height; }; FieldsDiscussioncoordinate GlobalsSet_DisEnableSet_NoSetting = -1, Set_DisEnable = 0, Set_Enabled = 1 } SettingMode; DiscussionNot set Set_EnabledSet_NoSetting = -1, Set_DisEnable = 0, Set_Enabled = 1 } SettingMode; DiscussionEnabled Set_EnabledSet_NoSetting = -1, Set_DisEnable = 0, Set_Enabled = 1 } SettingMode; DiscussionNot set |